package main

import (
	"bufio"
	"fmt"
	tcpserver "nat/tcp"
	"os"
)

func main() {
	tcpserver.NewUpLinkServer(":5228")
	fmt.Println("直接在控制台输入内容后回车即可发送服务端信息！！！ ")
	scanner := bufio.NewScanner(os.Stdin)
	for {
		scanner.Scan()
		text := scanner.Text()
		if text == "exit" {
			break
		}
		tcpserver.SendMessageToAll([]byte(text))
	}
}
